#!/usr/bin/env bash
port_arr=("16351" "16352" "16353" "16354" "16355" "16356" "16357" "16358" "16359" "17351" "17352" "17353" "17354" "17355" "17356" "17357" "17358" "17359" "18351" "18352" "18353" "18354" "18355" "18356" "18357" "18358" "18359" "19351" "19352" "19353")

function test(){
 for port in ${port_arr[@]}
 do
  echo $(curl -s http://localhost:$port/addresses | jq -r '.ethereum')
 done
}

test